import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

import system from './modules/system'
import product from './modules/product'
export default new Vuex.Store({
  	state: {
		
  	},
  	mutations: {

  	},
  	actions: {

  	},
	getters : {
		menuCollapse : state => {
			return state.system.menuCollapse
		}
	},
	plugins : [
		createPersistedState()
	],
  	modules: {
		system,
		product
  	}
})
